/* 这里的样式是完整的，您可以直接使用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  font-family: 'Noto Sans SC', sans-serif;
}

.layout-sider {
  width: 240px;
  background-color: #fff;
  border-right: 1px solid #E4E7ED;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sider-header {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #E4E7ED;
}
.system-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #303133;
  margin: 0 0 5px 0;
}
.system-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
  color: #909399;
}

.menu-nav {
  flex-grow: 1;
  padding-top: 15px;
}
.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0 10px 4px 10px;
  border-radius: 6px;
  color: #303133;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.menu-item:hover {
  background-color: #ecf5ff;
}
.menu-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  color: #606266;
  transition: color 0.2s;
}
.menu-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-item.router-link-exact-active {
  background-color: #409EFF;
  color: #fff;
}
.menu-item.router-link-exact-active .menu-icon {
  color: #fff;
}

.layout-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #F5F7FA;
}

.layout-header {
  height: 60px;
  background-color: #fff;
  border-bottom: 1px solid #E4E7ED;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 24px;
}

.user-profile-container {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #409EFF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.user-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  width: 160px; /* 可以适当调窄一些 */
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #E4E7ED;
  padding: 8px 0;
  z-index: 100;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #303133;
  cursor: pointer;
  transition: background-color 0.2s;
}
.dropdown-item:hover {
  background-color: #F5F7FA;
}
.dropdown-item svg {
  margin-right: 10px;
  color: #606266;
}

.dropdown-fade-enter-active,
.dropdown-fade-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-fade-enter-from,
.dropdown-fade-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

.layout-content {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
}
